<?php
//
// Twitter Sidebox Mod
// includes/templates/templates_default/sideboxes/tpl_twitter_sidebox.php
//
//  --------------------------------------------------
//  http://www.deliawilsondesign.com mod Zen-Cart
//  --------------------------------------------------
//  zen-cart Open Source E-commerce
//  Copyright (c) 2003-2006 The zen-cart developers
//  http://www.zen-cart.com/index.php
//  Portions Copyright (c) 2003 osCommerce
//  --------------------------------------------------
//  This source file is subject to version 2.0 of the GPL license,
//  that is bundled with this package in the file LICENSE, and is
//  available through the world-wide-web at the following url:
//  http://www.zen-cart.com/license/2_0.txt.
//  If you did not receive a copy of the zen-cart license and are unable
//  to obtain it through the world-wide-web, please send a note to
//  license@zen-cart.com so we can mail you a copy immediately.
//  --------------------------------------------------
//
// $Id: tpl_twitter_sidebox.php,v 1.0 6/24/2006


  $content = '';

if(defined('MODULE_AUTOTWEET_TWITTERUSERNAME') && trim(MODULE_AUTOTWEET_TWITTERUSERNAME) != ''){

  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

  $content .= '<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: \'profile\',
  rpp: 4,
  interval: 6000,
  width: 162,
  height: 300,
  theme: {
    shell: {
      background: \'#ffc000\',
      color: \'#ffffff\'
    },
    tweets: {
      background: \'#ffffff\',
      color: \'#000000\',
      links: \'#B60009\'
    }
  },
  features: {
    scrollbar: false,
    loop: false,
    live: false,
    hashtags: true,
    timestamp: true,
    avatars: false,
    behavior: \'all\'
  }
}).render().setUser(\''.MODULE_AUTOTWEET_TWITTERUSERNAME.'\').start();
</script>';
  $content .= '</div>';
}else{
  $content = '<div style="margin:3px">Your need to add your twitter username to dsiplay your twitter information here. Please note that this does not require your password to function.</div>';
}


